package controller;

import javax.swing.JPopupMenu;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import vue.Fenetre;

import model.Model;

public class Main {

	public static void main(final String[] argv) {
		//      
//		try {
//			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//		} catch (UnsupportedLookAndFeelException e) {
//			// handle exception
//		} catch (ClassNotFoundException e) {
//			// handle exception
//		} catch (InstantiationException e) {
//			// handle exception
//		} catch (IllegalAccessException e) {
//			// handle exception
//		}

		JPopupMenu.setDefaultLightWeightPopupEnabled(false);

		UIManager.put("swing.boldMetal", Boolean.FALSE);

		final Model model = new Model();
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				new Fenetre(model).setVisible(true);
			}
		});
	}

}
